﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace House_World
{
    public class House : Transform
    {
        public VertexPositionColor[] cube;

        public House(Color color)
        {

            Vector3[] cubeVerts = new[]
            {
                new Vector3(3,0,-5),
                new Vector3(4,0,-5),
                new Vector3(3,1,-5),
                new Vector3(4,1,-5),
                new Vector3(3,0,-6),
                new Vector3(4,0,-6),
                new Vector3(3,1,-6),
                new Vector3(4,1,-6)
            };

            int[] triangles = new[] 
            {
                0,2,1,
                1,2,3,

                2,0,4,
                4,6,2,

                2,6,3,
                3,6,7,

                7,6,4,
                4,5,7,

                7,5,1,
                1,3,5
            };

            Triangle triangle = new Triangle(color);
            cube = triangle.returnTriangle(cubeVerts, triangles);
        }

        public VertexPositionColor[] returnCube()
        {
            return cube;
        }

    }
}
